package name.fowler.refactoring.simplestore.domain.movie;

public class MovieChildren extends Movie {

	private static final double MULTIPLY_COEFFICIENT = 1.5;
	private static final double BASE_PRICE = 1.5;

	public MovieChildren(String title) {
		super(title);
	}

	@Override
	public double calculateRentalPrice(int days) {
		double thisAmount = BASE_PRICE;
		if (days > 3) {
			thisAmount = (days - 3) * MULTIPLY_COEFFICIENT;
		}
		return thisAmount;
	}

}
